
@extends("layout.main")
@section("content")
    <div class="col-sm-8 blog-main">
        <form action="/posts/{{$post->id}}/updatePost" method="POST">
         <input type="hidden" name="_token" value="{{csrf_token()}}">
            <div class="form-group">
                <label>标题</label>
                <input name="title" type="text" class="form-control" placeholder="这里是标题" value="{{$post->title}}">
            </div>
        <div class="form-group">
                <label>内容</label>
               <!--   <div id="div1" style="width:800px;">    
                 </div> -->
               <!--  <textarea id="content"  style="height:400px;max-height:500px;" name="content" class="form-control" placeholder="这里是内容"></textarea> -->
              
                    <div id="div1">
                        <p>{!!$post->content!!}</p>
                    </div>
                        <textarea id="content"  style="display:none;" name="content" class="form-control"></textarea>
            </div>
            <button type="submit" class="btn btn-default">提交</button>
        </form>
        <br>
            </div><!-- /.blog-main -->
@endsection();


